<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DB;

class BookRecommendPosition extends Model
{
    public static function getSelectOptions()
    {
        $options = DB::table('book_recommend_positions')->where('deleted',0)->select('id','name as text')->get();

        foreach ($options as $option){
            $selectOption[$option->id] = $option->text;
        }
        return $selectOption;
    }
}
